#include "widget.h"
#include <QApplication>

#include <QDebug>
#include <QFontDatabase>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
//中文设置
//    QTextCodec::setCodecForLocale(QTextCodec::codecForName("utf-8"));
/*
    int id = QFontDatabase::addApplicationFont("wenquanyi.ttf");
    QString msyh = QFontDatabase::applicationFontFamilies (id).at(0);
    QFont font(msyh,10);
    qDebug()<<msyh<<endl;
    font.setPointSize(10);
    a.setFont(font);
*/
    Widget w;
    w.show();

    return a.exec();
}
